package temple.reflect;

public class Line {
    private  int a;
    private  String b;

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public String getB() {
        return b;
    }

    public void setB(String b) {
        this.b = b;
    }

    static{
        System.out.println("===[Line].static block is running...");
    }

    public  static String s = getString();

    public  static  String getString(){
        System.out.println("===[Line].the method of assingning values to static variables is running ...");
        return  "good body";
    }
    public  static  void speak(int a) {
        System.out.println("===[Line].the ordinary method is running...i=");
    }
    public  void run(int speed,String street) {
        System.out.println("===[Line].the ordinary method is running...a="+speed+",b="+street);
    }


    public  Line(){
        System.out.println("===[Line].the contruct method is running...");
    }

    public  Line(int a ,String b){
      this.a = a;
      this.b = b;
    }

}
